// components/short-video-input/index.ts
const app = getApp()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    inputVal: {
      type: String,
      value: "",
      observer:(val) => {
        console.log("val",val);
        
      }
    },
    isShowBack: {
      type: Boolean,
      value: true
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    pageHeight: app.globalData.pageHeight,
    windowWidth: app.globalData.windowWidth,
    navBarHeight: app.globalData.navBarHeight,
    menuRight: app.globalData.menuRight,
    menuWidth: app.globalData.menuWidth,
    menuBottom: app.globalData.menuBottom,
    menuHeight: app.globalData.menuHeight,
    menuTop: app.globalData.menuTop,
    statusBarHeight: app.globalData.statusBarHeight,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    back() {
      this.triggerEvent("tapBack")
      // wx.navigateBack()
    },
    tapInput() {
      // wx.navigateTo({
      //   url: `/pages/short-video-search-page/index`
      // })
      this.triggerEvent("tapInput")
    }
  }
})

export { }